package org.guass.linklist;

/**
 * @author guass
 * @date 2022年03月11日 17:32
 */
public class LinkNode<T> {

    private T data;
    protected LinkNode nextNode;


    public void setData(T dataSet){
        this.data = dataSet;
    }

    public T getData() {
        return data;
    }

    public LinkNode(T data) {
        this.data = data;
    }

    public LinkNode() {

    }

    @Override
    public String toString() {
        return "LinkNode{" +
                "data=" + data +
                '}';
    }
}
